<?
if (preg_match("/".basename(__FILE__)."/", $_SERVER["PHP_SELF"]))
        die("<b>Error 502:</b> Access denied.");

$confdir = dirname(__FILE__)."/../../includes/";

if(file_exists($confdir."config.php"))
    require $confdir."config.php";
else if(file_exists($confdir."config.default.php"))
    require $confdir ."config.default.php";

require(DIR_INCLUDES."/functions.php");
require(DIR_INCLUDES."/functions_debug.php");

loadConfig();
